/**
 * 作者: hxl
 * 日期: 2025-02-11 18:00:08
 * 备注: 限时活动表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActConfigModel {
    protected int id; // 事件ID
    protected int groupId; // 轮转顺序
    protected int configId; // 配置id
    protected int startDay; // 起始天数
    protected int endDay; // 结束天数
    protected int rankList; // 冲榜活动列表 (读取表格为act_top_ranking.csv中的top_id)
    protected String timeTask; // 限时任务列表 (读取act_task中的task_group_id)
    protected String recharge; // 限时充值列表
    protected String rechargeTask; // 充值任务 (关联act_recharge_task.task_group_id)
    protected String shopId; // 钻石礼包

    public ActConfigModel() {
    }

    public ActConfigModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        groupId = obj.containsKey("group_id") ? obj.getInteger("group_id") : 0;
        configId = obj.containsKey("config_id") ? obj.getInteger("config_id") : 0;
        startDay = obj.containsKey("start_day") ? obj.getInteger("start_day") : 0;
        endDay = obj.containsKey("end_day") ? obj.getInteger("end_day") : 0;
        rankList = obj.containsKey("rank_list") ? obj.getInteger("rank_list") : 0;
        timeTask = obj.containsKey("time_task") ? obj.getString("time_task") : "";
        recharge = obj.containsKey("recharge") ? obj.getString("recharge") : "";
        rechargeTask = obj.containsKey("recharge_task") ? obj.getString("recharge_task") : "";
        shopId = obj.containsKey("shop_id") ? obj.getString("shop_id") : "";
    }

    public int getId() {
        return id;
    }

    public int getGroupId() {
        return groupId;
    }

    public int getConfigId() {
        return configId;
    }

    public int getStartDay() {
        return startDay;
    }

    public int getEndDay() {
        return endDay;
    }

    public int getRankList() {
        return rankList;
    }

    public String getTimeTask() {
        return timeTask;
    }

    public String getRecharge() {
        return recharge;
    }

    public String getRechargeTask() {
        return rechargeTask;
    }
    public String getShopId() {
        return shopId;
    }

}
